Package com.cisco.pt.ipc.sim.impl
Class CloudSerialPortImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.PortImpl
com.cisco.pt.ipc.sim.impl.CloudSerialPortImpl
- All Implemented Interfaces:
IPCObject,CloudSerialPort,Port,Process
Information provided by the PKI file:
\class CloudSerialPort
\brief CloudSerialPort is the serial port on a Cloud device.
\example network().getDevice("Router0").getPort("Serial0")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionCloudSerialPortImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSubLink(String name, int dlci) Information provided by the PKI file:Information provided by the PKI file:getSubLinkAt(int index) Information provided by the PKI file:getSubLinkByDlci(int dlci) Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:booleanremoveSubLink(String link) Information provided by the PKI file:voidsetLmiType(LMIType lmiType) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.PortImpl
deleteLink, getBandwidth, getBia, getChannel, getClockRate, getDescription, getEncapProcess, getHardwareQueue, getHigherProcessCount, getKeepAliveProcess, getLightStatus, getLink, getMacAddress, getName, getPortNameNumber, getPower, getQosQueue, getTerminalTypeShortString, getType, isAutoCross, isBandwidthAutoNegotiate, isDuplexAutoNegotiate, isEthernetPort, isFullDuplex, isPortUp, isPowerOn, isProtocolUp, isStraightPins, isWirelessPort, setBandwidth, setBandwidthAutoNegotiate, setChannel, setClockRate, setDescription, setDuplexAutoNegotiate, setFullDuplex, setMacAddress, setPowerMethods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Port
deleteLink, getBandwidth, getBia, getChannel, getClockRate, getDescription, getEncapProcess, getHardwareQueue, getHigherProcessCount, getKeepAliveProcess, getLightStatus, getLink, getMacAddress, getName, getPortNameNumber, getPower, getQosQueue, getTerminalTypeShortString, getType, isAutoCross, isBandwidthAutoNegotiate, isDuplexAutoNegotiate, isEthernetPort, isFullDuplex, isPortUp, isPowerOn, isProtocolUp, isStraightPins, isWirelessPort, setBandwidth, setBandwidthAutoNegotiate, setChannel, setClockRate, setDescription, setDuplexAutoNegotiate, setFullDuplex, setMacAddress, setPowerMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
CloudSerialPortImpl
public CloudSerialPortImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setLmiType
Information provided by the PKI file:
\brief Sets the LMI type for this port. \param lmiType, the LMI type to set for this port. LMI types: eLmiAnsi = 0, eLmiCisco = 1, eLmiQ933a = 2- Specified by:
setLmiTypein interfaceCloudSerialPort- Parameters:
lmiType- Takes in a parameter of lmiType
-
getLmiType
Information provided by the PKI file:
\brief Returns the LMI type for this port. \return LmiType, the LMI type for this port. LMI types: eLmiAnsi = 0, eLmiCisco = 1, eLmiQ933a = 2- Specified by:
getLmiTypein interfaceCloudSerialPort- Returns:
- LMIType Returns a LMIType
-
addSubLink
Information provided by the PKI file:
\brief Adds a sublink with the specified name and DLCI number to this port. \param name, the name for this sublink. \param dlci, the DLCI number for this sublink. \return bool, true if successful, otherwise false.- Specified by:
addSubLinkin interfaceCloudSerialPort- Parameters:
name- Takes in a parameter of namedlci- Takes in a parameter of dlci- Returns:
- boolean Returns a boolean
-
removeSubLink
Information provided by the PKI file:
\brief Removes the sublink with the specified name from this port. \param link, the name of the sublink of interest. \return bool, true if successful, otherwise false.- Specified by:
removeSubLinkin interfaceCloudSerialPort- Parameters:
link- Takes in a parameter of link- Returns:
- boolean Returns a boolean
-
getSubLinkCount
public int getSubLinkCount()Information provided by the PKI file:
\brief Returns the number of sublinks on this port. \return int, the number of sublinks on this port.- Specified by:
getSubLinkCountin interfaceCloudSerialPort- Returns:
- int Returns a int
-
getSubLinkAt
Information provided by the PKI file:
\brief Returns the sublink at the specified index. \param index, the index of interest. \return CloudSubLink, the CloudSubLink object at the specified index.- Specified by:
getSubLinkAtin interfaceCloudSerialPort- Parameters:
index- Takes in a parameter of index- Returns:
- CloudSubLink Returns a CloudSubLink
-
getSubLinksInfo
Information provided by the PKI file:
\brief Get Sublink info in string format (dlci number and sublink name \return vector<string>, a vector of sublink info in string format- Specified by:
getSubLinksInfoin interfaceCloudSerialPort- Returns:
- List<String> Returns a List<String>
-
getSubLinkByDlci
Information provided by the PKI file:
\brief Returns the sublink associated with a provided dlci \param dlci, the dlci number. \return CloudSubLink, the CloudSubLink object associated with the given dlci number- Specified by:
getSubLinkByDlciin interfaceCloudSerialPort- Parameters:
dlci- Takes in a parameter of dlci- Returns:
- CloudSubLink Returns a CloudSubLink
-